package com.css.zfzx.fxpg.modules.rescue.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.fxpg.modules.rescue.repository.entity.FxRescueEntity;
import com.css.zfzx.fxpg.modules.rescue.viewobjects.FxRescueQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author leon
 * @date 2020-12-02
 */

public interface FxRescueService {

    JSONObject queryFxRescues(FxRescueQueryParams queryParams, int curPage, int pageSize);

    FxRescueEntity getFxRescue(String id);

    FxRescueEntity saveFxRescue(FxRescueEntity fxRescue);

    FxRescueEntity updateFxRescue(FxRescueEntity fxRescue);

    void deleteFxRescues(List<String> ids);

    List<DictItemEntity> getValidDictItemsByDictCode(String dictCode);

    String exportExcel(FxRescueQueryParams queryParams, HttpServletResponse response);

    String importExcel(MultipartFile file);

    String judgeRational(FxRescueEntity fxRescue);
}
